package com.ztn.iot.zhonghaichi.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Data
@ConfigurationProperties(prefix = "zhc")
public class ZhcProperties {

    private Boolean savePicture;

    private String iotMqTopic;

    private String iotApiToken;

    private List<ZhcAuth> zhcAuths;

    @Data
    public static class ZhcAuth{

        private String  BaseUrl;

        private String userName;

        private String password;
    }
}
